<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.css" rel="stylesheet" />
		<link href="../css/iconfont.css" rel="stylesheet" />
    	<link href="../css/xinzengdizhi.css" rel="stylesheet" />
    	<link href="../css/indexlist.css" rel="stylesheet" />
    	<script src="../js/jquery-1.9.1.min.js"></script>
	</head>
	
	<body>
		<!--  顶部组件      -->
		<header class="mui-bar mui-bar-nav head">
			<a class="fanhui" data-href="myaddress.html">
				<span class="mui-icon mui-icon-arrowleft sp5"></span>
			</a>
			<h1 class="mui-title">添加新地址</h1>
			<a id="baocun" class="baocun">保存</a>
		</header>
		
		<!--  主题内容组件     -->
		<div class="mui-content">
			<div class="mui-input-group">
			    <div class="mui-input-row">
			        <label>收货人</label>
			        <input id="shouhuo" type="text" class="" placeholder="">
			    </div>
			    <div class="mui-input-row">
			        <label>联系方式</label>
			        <input type="text" class="" placeholder="">
			    </div>
			   	<div class="mui-input-row zengjia" data-href="cityxuanze.html">
			        <label>所在地区</label>
			        <span style="font-size: 26px; margin-right: 10px; height: 50px; line-height: 50px;" class="mui-icon mui-icon-arrowright"></span><span id="lbProjectName" class="sp1"></span>
			    </div>
			    <div class="mui-input-row">
			        <label>详细地址</label>
			        <input type="text" class="" placeholder="">
			    </div>
			</div>
		</div>
		<script src="../js/mui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/indexlist.js"></script>
		<script type="text/javascript">
			mui.init();
			document.getElementsByClassName('zengjia')[0].addEventListener("tap", function() {
				herf = $(this).attr("data-href");
				mui.openWindow({
					url: herf,
					id: herf,
					waiting: {
						autoShow: false
					},
					extras: {
						id: herf
					}
				});
			});
	</script>
	<script>
		document.getElementById("baocun").addEventListener('tap',function(){
			mui.alert("保存成功",function(){
				mui.openWindow({
					url: "myaddress.html",
					id: "myaddress.html",
					waiting: {
						autoShow: false
					},
					extras: {
						id: "myaddress.html"
					}
				});
			});
		});
		document.getElementsByClassName('fanhui')[0].addEventListener("tap", function() {
				urlid = this.getAttribute("data-href");
				mui.openWindow({
					url: urlid,
					id: urlid,
					waiting: {
						autoShow: false
					}
				});
			});
		getvalue();
		function getvalue(){
			///test2.html?parm1=myimg1&parm2=myimg2 
			//获得第一个属性 
			//decodeURI 解码
			var url=decodeURI(location.href);
			var tmp1=url.split("?")[1]; 
			var tmp2=tmp1.split("&")[0];
			var tmp3=tmp2.split("=")[1]; 
			var parm1=tmp3;
			console.log(parm1);
			document.getElementById("lbProjectName").innerHTML=parm1;
		}
	</script>
	</body>

</html>

